package com.investmenttechnologyservices.model;

import com.google.appengine.api.datastore.Entity;
import com.google.appengine.api.datastore.Key;


public class Broker extends EntityHolder {
	//@Id 
	//private String key;
	//@Parent 
	//private Key<Firm> firmKey;
	// Integer type;
	//private String shortName;
	//private String name;

	public Broker(Entity entity){
		super(entity);
	};
	
	public Broker(String id) {
		super("broker",id);
	}
	
	public Broker(String id, Key firmKey, String shortName, String name) {
		this(id);
		setFirmKey(firmKey);
		setShortName(shortName);
		setName(name);
	}
	
	public String getId() {return super.getId();}

	public String getShortName() {
		return (String) getProperty("shortName");
	}
	public void setShortName(String name) {
		setProperty("ShortName", name);
	}

	public String getName() {
		return (String) getProperty("name");
	}
	public void setName(String name) {
		setUnindexedProperty("name", name);
	}

	public void setFirmKey(Key firmKey) {setProperty("firmKey",firmKey);}
	public Key getFirmKey(){return (Key)getProperty("firmKey");}
	

	
}
